const maplayersUtils = {

  filterlayers(layersitem) {
     layersitem.items.filter(function (item, ary, index) {
      if (item) {
        if (item.type === 'feature') {
          window.renderlayers.push(item);
          return true
        } else {
          if (item.type === 'group') {
            if (item.layers && item.layers.items.length){
              maplayersUtils.filterlayers(item.layers)
            }
          }
        }
      }
    })
  }
}
export default maplayersUtils;
